package com.lancoo.ccas53.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lancoo.ccas53.entity.ScheduleSelect;
import com.lancoo.ccas53.mapper.ScheduleSelectMapper;
import com.lancoo.ccas53.pojo.dto.ArrangeScheduleDto;
import com.lancoo.ccas53.pojo.dto.InnerTeachingClass;
import com.lancoo.ccas53.service.ScheduleSelectService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: liufeng
 * @CreateTime: 2024-08-01  10:57
 * @Description:
 */
@Service
public class ScheduleSelectServiceImpl extends ServiceImpl<ScheduleSelectMapper, ScheduleSelect> implements ScheduleSelectService {
    @Override
    public List<ArrangeScheduleDto> getSchedules(Integer taskId, List<InnerTeachingClass> teachingClasses) {
        return baseMapper.getSchedules(taskId, teachingClasses);
    }

    @Override
    public List<ScheduleSelect> getAllScheduleByTeachingClassIdAndHourType(String teachingClassId, Integer hourType) {
        return baseMapper.getAllScheduleByTeachingClassIdAndHourType(teachingClassId, hourType);
    }
}
